﻿#include "widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::WidgetClass())
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_clicked()
{
    qDebug() << "执行槽函数";
}

void Widget::on_pushButton_enabled_clicked()
{
    bool enable = ui->pushButton->isEnabled();
    if (enable)
        ui->pushButton->setEnabled(false);
    else
        ui->pushButton->setEnabled(true);
}
